package com.gjzt.business.media.inter;

import org.apache.ibatis.annotations.Param;

import com.gjzt.business.media.model.MediaResource;

import java.util.List;

public interface MediaResourceMapper {
    int deleteByPrimaryKey(String resourceId);
    
    int updateResourceStatus(@Param("resourceId")String resourceId, @Param("status")String status);

    int insert(MediaResource record);

    MediaResource selectByPrimaryKey(String resourceId);

    MediaResource selectByResourceCode(String resourceCode);

    List<MediaResource> selectByStopId(@Param("stopId")String stopId);

//    MediaResource selectByResourceIdAndMediaType(@Param("resourceId")String resourceId, @Param("mediaType")String mediaType);

    int updateByPrimaryKeySelective(MediaResource record);

    int updateByPrimaryKey(MediaResource record);

    Integer selectCountByStopIdAndMeidaType(@Param("stopId")String stopId, @Param("mediaType")String mediaType);
    
    
}